---
image: /generated/articles-docs-lambda-getregions.png
id: getregions
title: getRegions()
crumb: 'Lambda API'
---

Gets an array of all supported AWS regions of this release of Remotion Lambda.

## Example

```tsx twoslash
import {getRegions} from '@remotion/lambda';

// ---cut---

const regions = getRegions();
// ["eu-central-1", "us-east-1"]
```

## API

The function takes an optional object, with the following options:

### `enabledByDefaultOnly`

_available from v3.3.11_

Only return [the regions which are enabled by default](https://docs.aws.amazon.com/general/latest/gr/rande-manage.html) in a new AWS account.

## Return value

An array of supported regions by this release of Remotion Lambda.

## See also

- [Source code for this function](https://github.com/remotion-dev/remotion/blob/main/packages/lambda/src/api/get-regions.ts)
- [Region selection](/docs/lambda/region-selection)
